<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'input_hotel.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/application.css"></c:url>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/form.css"></c:url>">

  </head>
  
  <body>
   <form action="<c:url value="/RoomMgr"/>" method="post">
       <input type="hidden" name="act" value="CreateRoom"/>
       <div class="headTitle">&gt;&gt;新房间登记</div>
       <div class="groupline" style="margin-bottom:5px">房间基本信息</div>
       <div>
	       <ul>
	          <li>
	            <span class="lableFont">分店名称:</span>
	            <select name="hotelId">
	            <option value="0" selected="selected">--请选择分店--</option>
	            <c:forEach var="hotel" items="${hotels}">
	               <option value="${hotel.hotelId}" <c:if test="${param['hotelId']==hotel.hotelId}">selected</c:if>>${hotel.hotelName}</option>
	            </c:forEach>
                </select>
	          </li>
	          <li>
	            <span class="lableFont">房号:</span>
	            <input type="text" class="text" name="roomnumber" size="80" value=""/>
	          </li>
	          <li>
	                 <span class="lableFont">房间类型:</span>
	                  <select name="roomtype">
                           <option value="0" selected="selected">--请选择类型--</option>
                           <option value="普单人间">普单人间</option>
                           <option value="普双人间">普双人间</option>
                           <option value="三人间">三人间</option>
                           <option value="商务套房">商务套房</option>
                           <option value="贵宾套房">贵宾套房</option>
                      </select>
	          
	          </li>
	          <li>
	          <span class="lableFont">屋内设施:</span>
	           <input name="roomfacility" type="checkbox" id="roomfacility" value="平面液晶电视" />平面液晶电视
               <input name="roomfacility" type="checkbox" id="roomfacility" value="冰箱" />冰箱
               <input name="roomfacility" type="checkbox" id="roomfacility" value="空调" />空调
               <input name="roomfacility" type="checkbox" id="roomfacility" value="卫星电视" />卫星电视
               <input name="roomfacility" type="checkbox" id="roomfacility" value="互联网接入" />互联网接入
               <input name="roomfacility" type="checkbox" id="roomfacility" value="冲浪浴缸" />冲浪浴缸
               <input name="roomfacility" type="checkbox" id="roomfacility" value="观海景" />观海景
	          </li>
	          <li>
	            <span class="lableFont">房间状态:</span>
	             <select name="roomstatus">
                           <option value="未入住">未入住</option>
                           <option value="有住客">有住客</option>
                           <option value="已预订">已预订</option>
                           <option value="保洁中">保洁中</option>
                           <option value="已退房未保洁">已退房未保洁</option>
                           <option value="维修中">维修中</option>
                      </select>
	          </li>
	          <li>
	            <span class="lableFont" style="vertical-align:middle">备注说明:</span>
	            <textarea name="roomdesc" class="text" rows="15" cols="100">请简略填写房间相关信息!</textarea>
	          </li>	 
	        </ul> 
          </div>
	      <div class="submitDiv">
	        <input type="submit" value="房间登记"/>
	        <input type="reset" value="取消重写"/>
	      </div>     
    </form>
       <c:if test="${not empty errMsg}">
          <script type="text/javascript">
             alert("${errMsg}");
          </script>
       </c:if>
  </body>
</html>
